package com.sinopec.yelofixedreader.stock.inn.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.sinopec.basemodule.model.ProductTypeDetailsModel
import com.sinopec.yelofixedreader.stock.inn.R

class StockInDetailListAdapter :
    BaseQuickAdapter<ProductTypeDetailsModel, BaseViewHolder>(R.layout.adapter_stock_in_detail_item) {
    override fun convert(holder: BaseViewHolder, item: ProductTypeDetailsModel) {

        holder
            .setText(R.id.tvProductType, item.productTypeName)
            .setText(R.id.tvPlanCount, item.planCount)
            .setText(R.id.tvActualCount, item.actualStockOutCount)
            .setText(R.id.tvBackCount, item.backCount)
    }

}